package cn.gemiman.daoyi.module.cms.controller.admin.appsitealbum.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.gemiman.daoyi.framework.excel.core.annotations.DictFormat;
import cn.gemiman.daoyi.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 站点相册 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AppSiteAlbumRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "14636")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "站点编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "23555")
    @ExcelProperty("站点编号")
    private Long appSiteId;

    @Schema(description = "站点标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "19326")
    @ExcelProperty("站点标识")
    private String appId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "道一")
    @ExcelProperty("名称")
    private String albumName;

    @Schema(description = "描述", example = "随便")
    @ExcelProperty("描述")
    private String description;

    @Schema(description = "封面")
    @ExcelProperty("封面")
    private String albumCover;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "点击量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("点击量")
    private Integer viewNum;

    @Schema(description = "点赞数量")
    @ExcelProperty("点赞数量")
    private Long thumbsUpTimes;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}